package com.dd.logistics.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("outbound_order")
public class OutboundOrder implements Serializable {
    
    public static final int STATUS_PENDING = 0;    // 待拣货
    public static final int STATUS_PICKED = 1;     // 已拣货
    public static final int STATUS_COMPLETED = 2;  // 已出库
    
    @TableId(type = IdType.AUTO)
    private Long id;
    private String orderNumber;
    private Long customerId;
    private Long supplierId;
    private String productCode;
    private Integer quantity;
    private String remark;
    private Integer status;
    private Date createTime;
    private Date updateTime;
    
    public String getStatusName() {
        switch (status) {
            case STATUS_PENDING:
                return "待拣货";
            case STATUS_PICKED:
                return "已拣货";
            case STATUS_COMPLETED:
                return "已出库";
            default:
                return "未知状态";
        }
    }
} 